import React,{useState} from 'react'
import AppHeader from './components/appHeader/AppHeader'
export default function App() {
  const [searchContent, setSearchContent] = useState('');

  const handleSearch = (content) => {
      setSearchContent(content);
  };
  const headlist = [
    { name: "首页", path: '/' },
    { name: 'AI coding', path: '/coding' },
    { name: '沸点', path: '/boiling' },
    { name: '课程', path: '/course' },
    { name: '直播', path: '/live' },
    { name: '活动', path: '/activity' },
    { name: 'AI刷题', path: '/ai' },
    { name: 'APP', path: '/app' },
    { name: '插件', path: '/plugin' },

]
return (
  <div>
      <AppHeader headlist={headlist} onSearch={handleSearch} />
      搜索的内容：{searchContent}
  </div>
);
}
